# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
from django.conf import settings


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Board',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('board_title', models.CharField(default=b'', max_length=50, verbose_name=b'\xe7\x89\x88\xe9\x9d\xa2\xe6\xa0\x87\xe9\xa2\x98', blank=True)),
                ('board_desc_short', models.CharField(default=b'', max_length=50, verbose_name=b'\xe7\x89\x88\xe9\x9d\xa2\xe7\x9f\xad\xe6\x8f\x8f\xe8\xbf\xb0', blank=True)),
                ('board_desc', models.TextField(default=b'', verbose_name=b'\xe7\x89\x88\xe9\x9d\xa2\xe6\x8f\x8f\xe8\xbf\xb0', blank=True)),
                ('board_total_topic', models.IntegerField(default=b'0', verbose_name=b'\xe7\x89\x88\xe9\x9d\xa2\xe4\xb8\xbb\xe9\xa2\x98\xe6\x95\xb0')),
                ('board_total_post', models.IntegerField(default=b'0', verbose_name=b'\xe7\x89\x88\xe9\x9d\xa2\xe5\xb8\x96\xe5\xad\x90\xe6\x95\xb0')),
                ('board_last_update', models.DateTimeField(default=b'1900-01-01', verbose_name=b'\xe7\x89\x88\xe9\x9d\xa2\xe6\x9c\x80\xe5\x90\x8e\xe6\x9b\xb4\xe6\x96\xb0\xe6\x97\xa5\xe6\x9c\x9f')),
                ('board_logo', models.FileField(upload_to=b'board_logo', null=True, verbose_name=b'\xe7\x89\x88\xe9\x9d\xa2\xe5\x9b\xbe\xe6\xa0\x87', blank=True)),
            ],
            options={
                'verbose_name': '\u7248\u5757',
                'verbose_name_plural': '\u7248\u5757',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='FPost',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('fpost_content', models.TextField(default=b'', verbose_name=b'\xe8\xb7\x9f\xe5\xb8\x96\xe5\x86\x85\xe5\xae\xb9', blank=True)),
                ('fpost_publish_date', models.DateTimeField(auto_now_add=True, verbose_name=b'\xe8\xb7\x9f\xe5\xb8\x96\xe5\x8f\x91\xe5\xb8\x83\xe6\x97\xa5\xe6\x9c\x9f')),
                ('fpost_last_update', models.DateTimeField(auto_now=True, verbose_name=b'\xe8\xb7\x9f\xe5\xb8\x96\xe6\x9c\x80\xe5\x90\x8e\xe6\x9b\xb4\xe6\x96\xb0\xe6\x97\xa5\xe6\x9c\x9f')),
                ('fpost_board', models.ForeignKey(verbose_name=b'\xe4\xbb\x8e\xe5\xb1\x9e\xe7\x89\x88\xe9\x9d\xa2', to='bbs.Board')),
            ],
            options={
                'ordering': ['fpost_publish_date'],
                'verbose_name': '\u8ddf\u5e16',
                'verbose_name_plural': '\u8ddf\u5e16',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Message',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('message_title', models.CharField(default=b'', max_length=50, verbose_name=b'\xe6\xb6\x88\xe6\x81\xaf\xe6\xa0\x87\xe9\xa2\x98', blank=True)),
                ('message_content', models.TextField(default=b'', verbose_name=b'\xe6\xb6\x88\xe6\x81\xaf\xe5\x86\x85\xe5\xae\xb9', blank=True)),
                ('message_send_date', models.DateTimeField(auto_now_add=True, verbose_name=b'\xe5\x8f\x91\xe9\x80\x81\xe6\x97\xa5\xe6\x9c\x9f')),
                ('message_read', models.BooleanField(default=False, verbose_name=b'\xe5\xb7\xb2\xe8\xaf\xbb')),
                ('message_from', models.ForeignKey(related_name='message_from_user', verbose_name=b'\xe5\x8f\x91\xe9\x80\x81\xe8\x80\x85', to=settings.AUTH_USER_MODEL)),
                ('message_to', models.ForeignKey(related_name='message_to_user', verbose_name=b'\xe6\x8e\xa5\xe5\x8f\x97\xe8\x80\x85', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'ordering': ['message_send_date'],
                'verbose_name': '\u7ad9\u5185\u4fe1',
                'verbose_name_plural': '\u7ad9\u5185\u4fe1',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Post',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('post_content', models.TextField(default=b'', verbose_name=b'\xe5\xb8\x96\xe5\xad\x90\xe5\x86\x85\xe5\xae\xb9', blank=True)),
                ('post_publish_date', models.DateTimeField(auto_now_add=True, verbose_name=b'\xe5\xb8\x96\xe5\xad\x90\xe5\x8f\x91\xe5\xb8\x83\xe6\x97\xa5\xe6\x9c\x9f')),
                ('post_last_update', models.DateTimeField(auto_now=True, verbose_name=b'\xe5\xb8\x96\xe5\xad\x90\xe6\x9c\x80\xe5\x90\x8e\xe6\x9b\xb4\xe6\x96\xb0\xe6\x97\xa5\xe6\x9c\x9f')),
                ('post_board', models.ForeignKey(verbose_name=b'\xe4\xbb\x8e\xe5\xb1\x9e\xe7\x89\x88\xe9\x9d\xa2', to='bbs.Board')),
                ('post_publisher', models.ForeignKey(verbose_name=b'\xe5\xb8\x96\xe5\xad\x90\xe5\x8f\x91\xe5\xb8\x83\xe8\x80\x85', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'ordering': ['post_publish_date'],
                'verbose_name': '\u5e16\u5b50',
                'verbose_name_plural': '\u5e16\u5b50',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Topic',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('topic_title', models.CharField(default=b'', max_length=50, verbose_name=b'\xe4\xb8\xbb\xe9\xa2\x98\xe6\xa0\x87\xe9\xa2\x98')),
                ('topic_content', models.TextField(default=b'', verbose_name=b'\xe4\xb8\xbb\xe9\xa2\x98\xe5\x86\x85\xe5\xae\xb9', blank=True)),
                ('topic_publish_date', models.DateTimeField(auto_now_add=True, verbose_name=b'\xe4\xb8\xbb\xe9\xa2\x98\xe5\x8f\x91\xe5\xb8\x83\xe6\x97\xa5\xe6\x9c\x9f')),
                ('topic_last_update', models.DateTimeField(auto_now=True, verbose_name=b'\xe4\xb8\xbb\xe9\xa2\x98\xe6\x9c\x80\xe5\x90\x8e\xe6\x9b\xb4\xe6\x96\xb0\xe6\x97\xa5\xe6\x9c\x9f')),
                ('topic_top', models.BooleanField(default=False, verbose_name=b'\xe7\xbd\xae\xe9\xa1\xb6')),
                ('topic_elite', models.BooleanField(default=False, verbose_name=b'\xe7\xb2\xbe\xe5\x8d\x8e\xe5\xb8\x96')),
                ('topic_board', models.ForeignKey(verbose_name=b'\xe4\xbb\x8e\xe5\xb1\x9e\xe7\x89\x88\xe9\x9d\xa2', to='bbs.Board')),
                ('topic_publisher', models.ForeignKey(verbose_name=b'\xe4\xb8\xbb\xe9\xa2\x98\xe5\x8f\x91\xe5\xb8\x83\xe8\x80\x85', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'ordering': ['topic_publish_date'],
                'verbose_name': '\u4e3b\u9898',
                'verbose_name_plural': '\u4e3b\u9898',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='User_Info',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('nickname', models.CharField(default=b'', max_length=50, verbose_name=b'\xe6\x98\xb5\xe7\xa7\xb0', blank=True)),
                ('city', models.CharField(default=b'', max_length=20, verbose_name=b'\xe6\x89\x80\xe5\x9c\xa8\xe5\x9f\x8e\xe5\xb8\x82', blank=True)),
                ('sex', models.CharField(default=b's', max_length=1, verbose_name=b'\xe6\x80\xa7\xe5\x88\xab', choices=[(b'm', b'\xe7\x94\xb7\xe6\x80\xa7'), (b'f', b'\xe5\xa5\xb3\xe6\x80\xa7'), (b's', b'\xe6\x9c\xaa\xe7\x9f\xa5')])),
                ('birthday', models.DateField(default=b'1900-01-01', verbose_name=b'\xe7\x94\x9f\xe6\x97\xa5')),
                ('constellation', models.CharField(default=b'', max_length=20, verbose_name=b'\xe6\x98\x9f\xe5\xba\xa7', blank=True)),
                ('job', models.CharField(default=b'', max_length=20, verbose_name=b'\xe8\x81\x8c\xe4\xb8\x9a', blank=True)),
                ('signature', models.TextField(default=b'', verbose_name=b'\xe4\xb8\xaa\xe6\x80\xa7\xe7\xad\xbe\xe5\x90\x8d', blank=True)),
                ('i_code', models.CharField(default=b'00000000', max_length=8, verbose_name=b'\xe9\x82\x80\xe8\xaf\xb7\xe7\xa0\x81')),
                ('role', models.IntegerField(default=60, verbose_name=b'\xe8\xa7\x92\xe8\x89\xb2', choices=[(90, b'\xe6\x80\xbb\xe7\x89\x88\xe4\xb8\xbb'), (80, b'\xe7\x89\x88\xe4\xb8\xbb'), (70, b'\xe8\x8d\xa3\xe8\xaa\x89\xe4\xbc\x9a\xe5\x91\x98'), (60, b'\xe4\xbc\x9a\xe5\x91\x98')])),
                ('grade', models.IntegerField(default=0, verbose_name=b'\xe7\xa7\xaf\xe5\x88\x86')),
                ('portrait', models.FileField(upload_to=b'portrait', null=True, verbose_name=b'\xe5\xa4\xb4\xe5\x83\x8f', blank=True)),
                ('r_user', models.OneToOneField(verbose_name=b'\xe7\x94\xa8\xe6\x88\xb7\xe5\xbc\x95\xe7\x94\xa8', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': '\u7528\u6237\u4fe1\u606f',
                'verbose_name_plural': '\u7528\u6237\u4fe1\u606f',
            },
            bases=(models.Model,),
        ),
        migrations.AddField(
            model_name='post',
            name='post_topic',
            field=models.ForeignKey(verbose_name=b'\xe4\xbb\x8e\xe5\xb1\x9e\xe4\xb8\xbb\xe9\xa2\x98', to='bbs.Topic'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='fpost',
            name='fpost_post',
            field=models.ForeignKey(verbose_name=b'\xe4\xbb\x8e\xe5\xb1\x9e\xe5\xb8\x96\xe5\xad\x90', to='bbs.Post'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='fpost',
            name='fpost_publisher',
            field=models.ForeignKey(verbose_name=b'\xe8\xb7\x9f\xe5\xb8\x96\xe5\x8f\x91\xe5\xb8\x83\xe8\x80\x85', to=settings.AUTH_USER_MODEL),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='fpost',
            name='fpost_topic',
            field=models.ForeignKey(verbose_name=b'\xe4\xbb\x8e\xe5\xb1\x9e\xe4\xb8\xbb\xe9\xa2\x98', to='bbs.Topic'),
            preserve_default=True,
        ),
    ]
